<div id="courseworkDetail">
    <div class="panel">
        <div class="panel-heading">
            <ul class="clearfix">
                <li class="pull-left"></l>
                <li class="pull-left">{{data.work.courseName}}</li>
                <li class="pull-left"></li>
            </ul>
        </div>
        <div class="panel-body">
            
            <form name="exerciseForm" novalidate  ng-submit="formSubmit()">
                <div class="singleSelection" ng-repeat="item in data.types" ng-if="item.exerciseList.length">
                    <p>{{viewBag.chineseNums[item.index]}}、{{item.name}}</p>
                    <div class="workpaperItem" ng-repeat="exercise in item.exerciseList">
                        <div class="form-group">{{$index+1}}、
                            <span ng-if="exercise.name.indexOf('/public/')<0">{{exercise.name}}</span>
                            <img ng-if="exercise.name.indexOf('/public/')>=0" ng-src="{{viewBag.setup.staticDomain+exercise.name}}" />
                        </div>
                        <div class="form-group" ng-if="item.kind == 0">
                            <input type="text" name="{{exercise.id}}" style="width:100%" size="100" />
                        </div>
                        <div class="form-group" ng-if="item.kind == 1">
                            <textarea name="{{exercise.id}}"></textarea>
                        </div>
                        <div class="form-group" ng-repeat="option in exercise.options" ng-if="item.kind>1">
                             <label  ng-if="item.kind==2">
                                <input type="radio" name="{{exercise.id}}"  value="{{option.id}}">
                               {{viewBag.englishNums[$index]}}、
                                <span ng-if="option.content.indexOf('/public/')<0">{{option.content}}</span>
                                <img ng-if="option.content.indexOf('/public/')>=0" ng-src="{{viewBag.setup.staticDomain+option.content}}" />    
                             </label>
                             <label ng-if="item.kind==3">
                                 <input type="checkbox" name="{{exercise.id}}" value="{{option.id}}" />{{rootViewBag.englishNums[$index]}}、
                                <span ng-if="option.content.indexOf('/public/')<0">{{option.content}}</span>
                                <img ng-if="option.content.indexOf('/public/')>=0" ng-src="{{rootData.setup.staticDomain+option.content}}"  />
                                <!--<span class="text-success" ng-show="showRightAnswer">{{option.answer ? "(正确答案)" : ""}}</span>-->
                             </label>
                        </div> 
                    </div> 
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-block">提交</button>
                </div>
            </form>
            <!--<iframe style="display:none" id="framehidden" name="framehidden" src="about:blank"></iframe>-->
        </div>
            
        </div>
    </div>
</div>

